import Vue from "vue";
import Vuex from "vuex";
import msg from "./msg";
import seek from "./seek";
import VuexPersistence from "vuex-persist";

const vuexLocal = new VuexPersistence({
  storage: window.sessionStorage,
});

Vue.use(Vuex);

export default new Vuex.Store({
  modules: {
    msg,
    seek,
  },
  plugins: [vuexLocal.plugin],
});
